package com.atguigu.behavior.observer;

public class WeatherClient {
    public static void main(String[] args) {
        WeatherFirstData weatherFirstData = new WeatherFirstData();
        weatherFirstData.registerObserver(new OfficialWeather());

        weatherFirstData.setData(30d,150d,30d);


        System.out.println("============================");


        weatherFirstData.registerObserver(new BaiduWeather());
        weatherFirstData.setData(40d,145d,20d);

    }
}
